﻿<%@ Page Title="" Language="C#" MasterPageFile="~/_console/_console.Master" AutoEventWireup="true" CodeBehind="page-navigation-add.aspx.cs" Inherits="SmartSpace.WebApp._console.page.page_navigation_add" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderHead" runat="server">
    <script>
        function sel(type, id) {
            if (type == 'view') {
                document.getElementById('set_view').style.display = '';
                document.getElementById('set_application').style.display = 'none';
                document.getElementById('set_other').style.display = 'none';
            } else if (type == 'application') {
                document.getElementById('set_view').style.display = 'none';
                document.getElementById('set_application').style.display = '';
                document.getElementById('set_other').style.display = 'none';
            } else if (type == 'other') {
                document.getElementById('set_view').style.display = 'none';
                document.getElementById('set_application').style.display = 'none';
                document.getElementById('set_other').style.display = '';
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderMenu" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolderTitle" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolderToolbar" runat="server">
    <asp:HyperLink ID="_ctlLinkBack" runat="server">返回</asp:HyperLink>
    <asp:LinkButton ID="_ctlBtnSave" runat="server" OnClick="_ctlBtnSave_Click">保存</asp:LinkButton>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ContentPlaceHolderContent" runat="server">
    <div class="form">
        <label>
            父结点</label><br />
        <asp:TextBox ID="_ctlEditParent" runat="server" ReadOnly="true" Width="400px"></asp:TextBox>
        <asp:LinkButton ID="_ctlReset" runat="server" Text="清空" OnClick="_ctlReset_Click" /><br />
        <label>
            Name(*)</label>
        <br />
        <asp:TextBox ID="_ctlEditName" runat="server" Width="400px"></asp:TextBox><br />
        <label>
            名称</label>
        <br />
        <asp:TextBox ID="_ctlEditCaption" runat="server" Width="400px"></asp:TextBox><br />
        <label>
            Description</label>
        <br />
        <asp:TextBox ID="_ctlEditDescription" runat="server" Width="400px"></asp:TextBox><br />
        <label>
            Icon</label>
        <br />
        <asp:TextBox ID="_ctlEditImage" runat="server" Width="400px"></asp:TextBox><br />
        <label>
            GroupName</label>
        <br />
        <em>reserved key words: _blank, _self
        </em>
        <br />
        <asp:TextBox ID="_ctlEditGroupName" runat="server" Width="400px"></asp:TextBox><br />
        <br />
        <div>
            <input id="radio_view" name="navigationtype" type="radio" checked="true" onclick="sel('view', 'set_view');" runat="server" clientidmode="Static" /><label for="radio_view">Navigate to view</label>
            <input id="radio_application" name="navigationtype" type="radio" onclick="sel('application', 'set_application');" runat="server" clientidmode="Static" /><label for="radio_application">Navigate to application</label>
            <input id="radio_other" name="navigationtype" type="radio" onclick="sel('other', 'set_other');" runat="server" clientidmode="Static" /><label for="radio_other">Navigate to other url</label>
        </div>
        <fieldset id="set_view">
            <legend>navigate to view</legend>
            <label>
                Views</label>
            <br />
            <asp:TreeView ID="_ctlTreeView" runat="server" ShowCheckBoxes="All">
            </asp:TreeView>
        </fieldset>
        <fieldset id="set_application" style="display: none;">
            <legend>navigate to application</legend>
            <label>
                applications</label>
            <br />
            <asp:ListBox ID="_ctlListApplication" runat="server" />
        </fieldset>
        <fieldset id="set_other" style="display: none;">
            <legend>navigate to other url</legend>
            <label>
                url</label>
            <br />
            <asp:TextBox ID="_ctlEditUrl" runat="server" />
        </fieldset>
        <br />
        <label>
            Arguments</label>
        <br />
        <asp:TextBox ID="_ctlEditArguments" runat="server" Width="400px"></asp:TextBox>
        <br />
        <em>arg1=x&arg2=y&arg3=z</em><br />
    </div>
</asp:Content>
